package com.wolfking.converter.transform.base;


import com.wolfking.converter.transform.FieldTransform;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class CharArrayFieldTransform implements FieldTransform<char[]> {


    @Override
    public boolean canTransform(Class<?> fieldType) {
        return char[].class.equals(fieldType);
    }

    @Override
    public char[] transform(Object value) {
        return new StringFieldTransform().transform(value).toCharArray();
    }
}
